/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'
import LayoutEmpty from '@/layout/empty'

const myRouter = {
  path: '/my',
  component: Layout,
  redirect: '/my/mytableview',
  name: 'My',
  meta: {
    title: '自定义组件示例',
    icon: 'example'
  },
  children: [{
    path: 'mytableview',
    component: LayoutEmpty,
    redirect: '/my/mytableview/list',
    name: 'MyTableView',
    meta: { title: '表格组件' },
    children: [
      {
        path: 'list',
        component: () => import('@/views/mytableview/list'),
        name: 'SimpleTableViewDemo',
        meta: { title: '列表展示组件' }
      },
      {
        path: 'edit',
        component: () => import('@/views/mytableview/edit'),
        name: 'SimpleTableViewDemo',
        meta: { title: '表单编辑组件' }
      }
    ]
  }]
}

export default myRouter
